import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
router.beforeEach((to: any, from, next) => {
    console.log(to);//打印出所有协议传递参数
    console.log((to.query.par));
    if (to.query.par) {
        const path = "/" + to.query.par;
        console.log("path", path);

        next()
        router.push({ path })
    } else {
        next()
    }
})
createApp(App).use(store).use(router).mount('#app')
